<%@ page language="java" import="java.util.*" pageEncoding="UTF-8"%>
<%@ taglib uri="http://java.sun.com/jsp/jstl/core" prefix="c"%>
<%
	String path = request.getContextPath();
	String basePath = request.getScheme() + "://"
			+ request.getServerName() + ":" + request.getServerPort()
			+ path + "/";
%>
<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
<title>查看订单页面</title>
<meta http-equiv="pragma" content="no-cache">
<meta http-equiv="cache-control" content="no-cache">
<meta http-equiv="expires" content="0">
<meta http-equiv="keywords" content="keyword1,keyword2,keyword3">
<meta http-equiv="description" content="This is my page">
</head>
<body>
	<p>
		&nbsp;&nbsp;${sessionScope.adminTest.adminName}管理员欢迎你&nbsp;&nbsp;&nbsp;
		&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; <b>企业后台系统，提供管理员新增，修改，删除，查找商品的功能</b>
		&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;
		&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; <a
			href="${pageContext.request.contextPath}/customer/indexUI.action">返回首页</a>
		&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; <a
			href="${pageContext.request.contextPath}/admin/orderShow.action">查看订单</a>
	</p>

	<form action="#" method="post">
		<b>查看订单：</b>
		<table width="98%" border=1 cellpading="0" cellspacing="0"
			align="center">
			<tr bgcolor="#CCFFFF">
				<td><b>订单序列号</b>
				</td>
				<td><b>客户序号</b>
				</td>
				<td><b>收件人</b>
				</td>
				<td><b>收件地址</b>
				</td>
				<td><b>联系电话</b>
				</td>
				<td><b>下单时间</b>
				</td>
				<td><b>订单状态</b>
				</td>
				<td><b>操作</b>
				</td>

			</tr>

			<c:forEach items="${sessionScope.ordersdetails }" var="ordersdetail"
				varStatus="status">
				<tr>
					<td>${ordersdetail.detailId }</td>
					<td>${ordersdetail.customerId }</td>
					<td>${ordersdetail.orderCname }</td>
					<td>${ordersdetail.orderCaddress }</td>
					<td>${ordersdetail.orderCphone }</td>
					<td>${ordersdetail.orderDate }</td>
					<td>${ordersdetail.orderStates }</td>
					<td><a href="${pageContext.request.contextPath}/admin/orderShowDetail.action?id=${ordersdetail.customerId }">查看详情</a>&nbsp;
					<a href="${pageContext.request.contextPath}/admin/deleteOrderDetail.action?id=${ordersdetail.detailId }">删除订单</a>&nbsp;
					
					</td>
				</tr>
			</c:forEach>


		</table>
	</form>
</body>
</html>